// test.ts

import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/cardcoupon/touch/usercoupon/ordercouponlist',
    method: 'post',
    response: ({ query }) => {
      return {
        result: {
          status: 1,
          data: {
            total_reduced_money: '164',
            product_list: [
              {
                product_id: 1398740,
                product_name:
                  '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0b\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                subject_name: '\u8bed\u6587',
                price: '715',
                reduced_money: '0',
                product_coupon_list: [],
              },
            ],
            order_coupon_reduced_money: '9',
            order_coupon_allocation_info: [
              {
                product_id: 1398768,
                product_name:
                  '\u3010\u6d4b\u8bd5\u8bfe\u3011\u4e00\u5e74\u7ea7\u6570\u5b66\u6625\u4e0b10',
                subject_name: '\u6570\u5b66',
                reduced_money: '9',
              },
            ],
            order_coupon_list: [
              {
                coupon_name: '\u6d4b\u8bd5\u5956\u5b66\u91d1\u8ba2\u5355\u7c7b',
                batch_id: 4625687,
                user_coupon_id: '2M3Q443CBY4SE4MBXH88',
                category: 1,
                discount_type: 1,
                discount: '9',
                threshold_text: '\u6ee110\u53ef\u7528',
                valid_stime: '2023-02-27 00:00:00',
                valid_etime: '2024-02-23 23:59:59',
                is_checked: true,
                is_valid: true,
                invalid_reason: '',
                category_desc: '\u8ba2\u5355\u7c7b',
              },
              {
                coupon_name: '\u6d4b\u8bd5\u5956\u5b66\u91d1\u8ba2\u5355\u7c7b',
                batch_id: 4625687,
                user_coupon_id: '2M3Q443CBY4SE3XH6XTC',
                category: 1,
                discount_type: 1,
                discount: '9',
                threshold_text: '\u6ee110\u53ef\u7528',
                valid_stime: '2023-02-27 00:00:00',
                valid_etime: '2024-02-23 23:59:59',
                is_checked: false,
                is_valid: false,
                invalid_reason:
                  '\u6682\u4e0d\u53ef\u4e0e\u5df2\u9009\u4f18\u60e0\u5238\u53e0\u52a0\u4f7f\u7528',
                category_desc: '\u8ba2\u5355\u7c7b',
              },
              {
                coupon_name: '\u6d4b\u8bd5\u5956\u5b66\u91d1\u8ba2\u5355\u7c7b',
                batch_id: 4625687,
                user_coupon_id: '2M3Q443CBY4SEKMDPWX2',
                category: 1,
                discount_type: 1,
                discount: '9',
                threshold_text: '\u6ee110\u53ef\u7528',
                valid_stime: '2023-02-27 00:00:00',
                valid_etime: '2024-02-23 23:59:59',
                is_checked: false,
                is_valid: false,
                invalid_reason:
                  '\u6682\u4e0d\u53ef\u4e0e\u5df2\u9009\u4f18\u60e0\u5238\u53e0\u52a0\u4f7f\u7528',
                category_desc: '\u8ba2\u5355\u7c7b',
              },
            ],
            cash_coupon_reduced_money: '164',
            cash_coupon_allocation_info: [
              {
                product_id: 1398740,
                product_name:
                  '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0b\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                subject_name: '\u8bed\u6587',
                reduced_money: '164',
              },
            ],
            cash_coupon_list: [
              {
                coupon_name: '\u73b0\u91d1\u7c7b\u6d4b\u8bd5\u91d1\u989d',
                batch_id: 4626513,
                user_coupon_id: '2M3YPJ3CBY4SE3J2DE7N',
                category: 3,
                discount_type: 2,
                discount: '7.7',
                threshold_text: '\u65e0\u95e8\u69db',
                valid_stime: '2023-03-10 00:00:00',
                valid_etime: '2023-05-31 23:59:59',
                is_checked: true,
                is_valid: true,
                invalid_reason: '',
                category_desc: '\u73b0\u91d1\u7c7b',
              },
            ],
            is_recommend: true,
            rule_url: 'https://m.xiwang.com/6405a31008816ff631a2e028.html',
            checked_coupon_num: 1,
            valid_coupon_num: 1,
            total_discount: '164',
            checked_product_coupon_num: 0,
            valid_product_coupon_num: 0,
            product_coupon_reduced_money: 0,
            checked_order_coupon_num: 0,
            valid_order_coupon_num: 0,
            checked_cash_coupon_num: 1,
            valid_cash_coupon_num: 1,
            coupon_detail: [
              {
                promotion_type: 1203,
                coupon_name: '\u73b0\u91d1\u7c7b\u6d4b\u8bd5\u91d1\u989d',
                reduced_money: '164',
                allocation_info: [
                  {
                    product_id: 1398740,
                    product_name:
                      '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0b\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                    subject_name: '\u8bed\u6587',
                    reduced_money: '164',
                  },
                ],
              },
            ],
          },
          trace_id: 'dayu_98108f8a2ba826e9f051346632bc1e37',
        },
      }
    },
  },
] as MockMethod[]
